package com.ruoyi.common.utils;

public class TenantUtils {
    private static final ThreadLocal<String> TENANT_ID = new ThreadLocal<>();

    public static String get() {
        return TENANT_ID.get();
    }

    public static void put(String tenantId) {
        TenantUtils.TENANT_ID.set(tenantId);
    }

    public static void remove() {
        TenantUtils.TENANT_ID.remove();
    }
}